import React, { FC } from "react";
import { Typography, Input } from 'antd'
import { QuestionInputDefaulProps, QuestionInputPropsType } from "./interface";
const { Paragraph } = Typography
const QuesionInput: FC<QuestionInputPropsType> = (props: QuestionInputPropsType) => {
    const { title = "", placeholder = "" } = { ...QuestionInputDefaulProps, ...props }

    return <div>
        <Paragraph strong>{title}</Paragraph>
        <div>
            <Input placeholder={placeholder}></Input>
        </div>

    </div>

}

export default QuesionInput